import Vue from 'vue'
import Router from 'vue-router'
import Login from "../views/Login";
import Admin from "../views/Admin";
import changePassword from "../views/changePassword";
import user from "../views/user";
import adminusers from "../views/adminusers";
import udp from "../views/udp";

Vue.use(Router)

export default new Router({
  routes: [
    //默认登录主页
    {
      path: '/',
      name: 'Login',
      component: Login

    },
    //登陆页面
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    //管理员页面
    {
      path: '/admin',
      name: 'Admin',
      component: Admin
    },
    //修改密码页面
    {
      path: '/changePassword',
      name: 'changePassword',
      component: changePassword
    },
    {
      path: '/user',
      name: 'user',
      component: user
    },
    {
      path: '/adminusers',
      name: 'adminusers',
      component: adminusers
    },
    {
      path: '/udp',
      name: 'udp',
      component: udp
    }
  ]
})
